 package com.hc.entity;

public class Contract {
	private int cid;
	private String cname;
	private String cdate;
	private String csdate;
	private String cedate;
	private int ctotal;
	private String cway;
	private int cdeposit;
	private int cnumber;
	private String cman;
	private String cstate;
	private House house = new House();
	private Tenant tenant =new Tenant();
	
	public Contract() {
		super();
	}

	public Contract(int cid, String cname, String cdate, String csdate, String cedate, int ctotal, String cway,
			int cdeposit, int cnumber, String cman, String cstate,  House house, Tenant tenant) {
		super();
		this.cid = cid;
		this.cname = cname;
		this.cdate = cdate;
		this.csdate = csdate;
		this.cedate = cedate;
		this.ctotal = ctotal;
		this.cway = cway;
		this.cdeposit = cdeposit;
		this.cnumber = cnumber;
		this.cman = cman;
		this.cstate = cstate;
		
		this.house = house;
		this.tenant = tenant;
	}

	public int getCid() {
		return cid;
	}

	public void setCid(int cid) {
		this.cid = cid;
	}

	public String getCname() {
		return cname;
	}

	public void setCname(String cname) {
		this.cname = cname;
	}

	public String getCdate() {
		return cdate;
	}

	public void setCdate(String cdate) {
		this.cdate = cdate;
	}

	public String getCsdate() {
		return csdate;
	}

	public void setCsdate(String csdate) {
		this.csdate = csdate;
	}

	public String getCedate() {
		return cedate;
	}

	public void setCedate(String cedate) {
		this.cedate = cedate;
	}

	public int getCtotal() {
		return ctotal;
	}

	public void setCtotal(int ctotal) {
		this.ctotal = ctotal;
	}

	public String getCway() {
		return cway;
	}

	public void setCway(String cway) {
		this.cway = cway;
	}

	public int getCdeposit() {
		return cdeposit;
	}

	public void setCdeposit(int cdeposit) {
		this.cdeposit = cdeposit;
	}

	public int getCnumber() {
		return cnumber;
	}

	public void setCnumber(int cnumber) {
		this.cnumber = cnumber;
	}

	public String getCman() {
		return cman;
	}

	public void setCman(String cman) {
		this.cman = cman;
	}

	public String getCstate() {
		return cstate;
	}

	public void setCstate(String cstate) {
		this.cstate = cstate;
	}

	

	public House getHouse() {
		return house;
	}

	public void setHouse(House house) {
		this.house = house;
	}

	public Tenant getTenant() {
		return tenant;
	}

	public void setTenant(Tenant tenant) {
		this.tenant = tenant;
	}
	
	
	
	
	
	
}
